$(function(){
var permissions = getPermissionStringList();

});
function getPermissionStringList(){

	   $.ajax({
	        type: "post",
	        url: JSmile.baseUrl+"/sys_user/getPermissionStringList",
	        contentType: 'application/json;charset=utf-8',
	        success: function (data) {
	        	var rows = data;
	       
	        	//选取class = shiro-myself 的标签
	        	$(".shiro-myself").each(function(){
	             
	        		var name = $(this).attr("name");
	            
	                var index = $.inArray(name,rows);
	           
	                if(index < 0){
	                	$(this).css('display','none');
	                }
	            });
	        	

	        }
	    })

	}

